import request from '@/utils/request';

export async function searchTradeList(params) {
  return request('/api/searchTradeList', {
    method: 'GET',
    params,
  });
}

export async function searchSaleTradeList(params) {
  return request('/api/searchSaleTradeList', {
    method: 'GET',
    params,
  });
}

export async function searchAuthTradeList(params) {
  return request('/api/searchAuthTradeList', {
    method: 'GET',
    params,
  });
}

export async function addTrade(data) {
  return request('/api/addTrade', {
    method: 'POST',
    data,
  });
}
